package com.bruce.pattern.behavioral.interpreter;

/**
 * Created by bruce on 2018/11/10 18:36
 */
public class MulNode extends SymbolNode {

    public MulNode(Node left, Node right) {
        super(left, right);
    }

    @Override
    public int interpret() {
        return left.interpret() * right.interpret();
    }
}
